package com.walsai.pcsys.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.walsai.pcsys.core.service.UserManager;

public class UsersController extends AbstractController{
	
private UserManager userManager;


	public void setUserManager(UserManager userManager){
		this.userManager = userManager;
	}

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		return new ModelAndView("usersView","userModel",userManager.getAll());
		
	}
	
}